package io.seata.samples.nacos.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.seata.samples.nacos.account.entity.TAccount;
import org.apache.ibatis.annotations.Param;

/**
 * Mapper 接口
 *
 * @author Administrator
 */
public interface TAccountMapper extends BaseMapper<TAccount> {
    /**
     * 方法功能描述
     *
     * @param userId
     * @param amount
     * @return int
     */
    int decreaseAccount(@Param("userId") String userId, @Param("amount") Double amount);

    /**
     * 方法功能描述
     *
     * @param userId
     * @return int
     */
    int testGlobalLock(@Param("userId") String userId);
}
